<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加员工</title>
    <!-- Bootstrap CSS for styling -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <h1>添加员工</h1>
    <form method="POST" enctype="multipart/form-data" th:action="@{/employee/save}">
        <!-- Name Field -->
        <div class="mb-3">
            <label for="name" class="form-label">姓名</label>
            <input type="text" class="form-control" id="name" name="name" required>
        </div>

        <!-- Salary Field -->
        <div class="mb-3">
            <label for="salary" class="form-label">薪资</label>
            <input type="number" step="0.01" class="form-control" id="salary" name="salary" required>
        </div>

        <!-- Birthday Field -->
        <div class="mb-3">
            <label for="birthday" class="form-label">生日</label>
            <input type="date" class="form-control" id="birthday" name="birthday" required>
        </div>

        <!-- Photo Upload Field -->
        <div class="mb-3">
            <label for="photo" class="form-label">头像</label>
            <input type="file" class="form-control" id="photo" name="file" accept="image/*" required>
        </div>

        <!-- Submit Button -->
        <button type="submit" class="btn btn-primary">提交</button>
    </form>
</div>

<!-- Bootstrap JS (optional) -->
<script src="/js/bootstrap.bundle.min.js"></script>
</body>
</html>